import request from "@/utils/request";
import type { loginForm, loginResponseData, userResponseData } from "./type";
enum API {
  LOGIN_URL = "/user/login",
  USERINFO_URL = "/user/info",
  LOGOUT_URL = "/index/logout"
}

//登录接口
export const reqLogin = (data: any) =>
  request.post<any, any>(API.LOGIN_URL, data);

export const reqUserInfo = () => request.get<any, any>(API.USERINFO_URL);

export const reqLogout = () => request.post<any, any>(API.LOGOUT_URL);
